# Maintainer: Cowington Post <cowingtonpost@gmail.com>
pkgname=maildir2rss
pkgver=0.0.2
pkgrel=4
pkgdesc="Convert a maildir to a rss feed"
url="https://git.sr.ht/~cowingtonpost/maildir2rss"
arch="all"
license="MPL-2.0"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~cowingtonpost/maildir2rss/archive/v$pkgver.tar.gz"
builddir="$srcdir/maildir2rss-v$pkgver"
options="!check" # no tests

export GOPATH="$srcdir/go"
export GOCACHE="$srcdir/go-build"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
export GOFLAGS="$GOFLAGS -modcacherw"

build() {
	make
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="
020b83dc4f0bef57f7abed28bb0d8504b8bcdc7c8ed6dbd43b7c03634fea37bb6473a785a911eca8d8f8c106776aec6326b91b8b73267e0f6ac7b09d251a1ffd  maildir2rss-0.0.2.tar.gz
"
